<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改材料申请单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-requisitiones-edit" th:object="${materialsRequisitiones}">
            <input name="mMid" th:field="*{mMid}" type="hidden">
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料类型：</label>
                <div class="col-sm-8">
                    <input name="matTypes" th:field="*{matTypes}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料分类：</label>
                <div class="col-sm-8">
                    <input name="matClassifications" th:field="*{matClassifications}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料数据：</label>
                <div class="col-sm-8">
                    <input name="matDatas" th:field="*{matDatas}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料详情：</label>
                <div class="col-sm-8">
                    <input name="matDetailss" th:field="*{matDetailss}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数量：</label>
                <div class="col-sm-8">
                    <input name="matNumbers" th:field="*{matNumbers}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none">
                <label class="col-sm-3 control-label">申请人：</label>
                <div class="col-sm-8">
                    <input name="mPeoples" th:field="*{mPeoples}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" style="display: none">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <select id="mStatus" name="mStatus" th:with="type=${@dict.getType('mate_status')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}">
                    </select>
<!--                    <div class="radio-box">-->
<!--                        <input type="radio" name="mStatus" value="">-->
<!--                        <label th:for="mStatus" th:text="未知"></label>-->
<!--                    </div>-->
<!--                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="mMtime" th:value="${#dates.format(materialsRequisitiones.mMtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group" style="display: none">
                <label class="col-sm-3 control-label">审批意见：</label>
                <div class="col-sm-8">
                    <input name="mOpinions" th:field="*{mOpinions}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">项目外键：</label>
                <div class="col-sm-8">
                    <input name="mId" th:field="*{mId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "ruoyi/requisitiones";
        $("#form-requisitiones-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-requisitiones-edit').serialize());
            }
        }

        $("input[name='mMtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>